[javascript] How To Initialize A Variable In An If Else Shecodes

[javascript] How To Initialize A Variable In An If Else Shecodes